package csdn.shimiso.eim.manager;

import org.jivesoftware.smack.XMPPException;
import org.jivesoftware.smackx.muc.MultiUserChat;

import android.content.Context;
import csdn.shimiso.eim.comm.Constant;

public class GroupChatManager  {
	private static MultiUserChat muc = null;

	
	public static void init(String name) throws XMPPException{
		muc = new MultiUserChat(XmppConnectionManager.getInstance().getConnection(),"group@conference.ahic.com.cn");
		muc.join(name);
	}
	
	public static MultiUserChat getInstance(Context context) throws XMPPException {

		if (muc == null) {
			init("zhangsan");
		}

		return muc;
	}
	

}
